<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>遍历对象</title>
</head>

<body>
    <!-- 如果对对象遍历 有三个属性  -->
    <!-- value 代表值 -->
    <!-- key 代表键 -->
    <!-- index 代表索引 -->
    <div class="app">
        <p v-for="(value,key,index) in obj">{{value}} ----{{key}} -------{{index}}</p>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        var xm = new Vue({
            el: '.app',
            data: {
                obj: {
                    name: '刘青',
                    age: 18,
                    behave: '帅气'
                }
            },
            methods: {
            }

        })

    </script>
</body>

</html>